<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        var abc = function () {
            var sum = 0;
            for (var i = 0; i < arguments.length; i++) {
                sum +=arguments[i];
            }
            return sum;
        }
            alert(abc(1,2,3,4,5));
    </script>
</head>
<body>
</body>
</html>